home *** CD-ROM | disk | FTP | other *** search
- Path: news.dal.ca!news
- From: Dan Kelley <d.kelley@dal.ca>
- Newsgroups: comp.lang.c++
- Subject: publicly avail class for X11?
- Date: Mon, 15 Apr 1996 14:17:40 -0300
- Organization: Dalhousie University
- Message-ID: <317284B4.519A@dal.ca>
- NNTP-Posting-Host: skye.phys.ocean.dal.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
-
- Hi folks. Is there a freely available class designed to let me draw on an X11
- display without going through dozens of low-level commands?
-
- Ideally it would have capabilities like:
- Screen s;
- s.initialize(); // actually create the window
- s.draw("hello world", 10, 10); // draw text indicated location
- s.draw(10, 10, 100, 100); // draw diagonal line
- and so forth, with optional things like
- s.window_name("foo bar"); // optional, defaults to ""
- s.size(500, 500); // optional, defaults to 300x300
- s.select_font(Helvetica); // select named font
- and so forth, along with various callback registry routines.
-
- For folks like me (a scientist, not a programmer) who only occasionally use X11, this
- would be a useful class to have available.
-
- Since this seems relatively straightforward for X11 geniuses, I'm wondering whether
- it exists already. I imagine another advantage would be that it could isolate code
- for X11 and other platforms, so that scientists like me could easily create crude
- interfaces if only for output) on various platforms.
-
- Thanks in advance to any who have advice.
-
- --
- Dan E. Kelley internet: mailto:Dan.Kelley@Dal.CA
- Oceanography Department phone: (902)494-1694
- Dalhousie University fax: (902)494-2885
- Halifax, NS, CANADA, B3H 4J1 WWW: http://www.phys.ocean.dal.ca/~kelley
-